import service from '@/utils/request'

// @Tags ElectroplateColorCode
// @Summary 创建电镀色编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ElectroplateColorCode true "创建电镀色编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /electroplateColorCode/createElectroplateColorCode [post]
export const createElectroplateColorCode = (data) => {
  return service({
    url: '/electroplateColorCode/createElectroplateColorCode',
    method: 'post',
    data
  })
}

// @Tags ElectroplateColorCode
// @Summary 删除电镀色编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ElectroplateColorCode true "删除电镀色编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /electroplateColorCode/deleteElectroplateColorCode [delete]
export const deleteElectroplateColorCode = (params) => {
  return service({
    url: '/electroplateColorCode/deleteElectroplateColorCode',
    method: 'delete',
    params
  })
}

// @Tags ElectroplateColorCode
// @Summary 批量删除电镀色编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除电镀色编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /electroplateColorCode/deleteElectroplateColorCode [delete]
export const deleteElectroplateColorCodeByIds = (params) => {
  return service({
    url: '/electroplateColorCode/deleteElectroplateColorCodeByIds',
    method: 'delete',
    params
  })
}

// @Tags ElectroplateColorCode
// @Summary 更新电镀色编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ElectroplateColorCode true "更新电镀色编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /electroplateColorCode/updateElectroplateColorCode [put]
export const updateElectroplateColorCode = (data) => {
  return service({
    url: '/electroplateColorCode/updateElectroplateColorCode',
    method: 'put',
    data
  })
}

// @Tags ElectroplateColorCode
// @Summary 用id查询电镀色编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ElectroplateColorCode true "用id查询电镀色编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /electroplateColorCode/findElectroplateColorCode [get]
export const findElectroplateColorCode = (params) => {
  return service({
    url: '/electroplateColorCode/findElectroplateColorCode',
    method: 'get',
    params
  })
}

// @Tags ElectroplateColorCode
// @Summary 分页获取电镀色编号列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取电镀色编号列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /electroplateColorCode/getElectroplateColorCodeList [get]
export const getElectroplateColorCodeList = (params) => {
  return service({
    url: '/electroplateColorCode/getElectroplateColorCodeList',
    method: 'get',
    params
  })
}
// 同步电镀编号
export const syncElectroplateColorCode = (data) => {
  return service({
    url: '/electroplateColorCode/syncElectroplateColorCode',
    method: 'post',
    data
  })
}
